package com.wxhandle.cleandemo.core.services;

import java.util.List;

import com.wxhandle.cleandemo.core.domain.base.QueryFilter;

import org.springframework.data.domain.Page;

public interface QueryableService<T, TKey> {

    T getOne(TKey id);

    T getFirst(QueryFilter<T> filter);

    Page<T> getPage(QueryFilter<T> filter, int page, int size);

    List<T> getList(QueryFilter<T> filter);
}
